package org.hu.vhr.util;

import org.hu.vhr.model.Hr;
import org.springframework.security.core.context.SecurityContextHolder;

public class HrUtil {
    public static Hr getUser(){
        return (Hr) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
    }
}
